/*
@author:Cao Tongqin and Zhang Jianfeng
*/
/*TODO*/
#top>div>a{
    text-align: center;
    color: black;
    font-size: x-large;
    text-decoration: none;
    white-space: nowrap;
}
/*TODO*/


#top>div>a:hover{
    color: rgb(0,78,206);
}

#main{
    /* margin: 0px 32px;
    padding-top: 0px; */
    display: flex;
    justify-content: center;
    border-top: 1px solid lightgray;
}
#dtl{
    width: 720px;
    margin: 32px;
}
#name{
    font-size: x-large;
    font-weight: bold;
}



#dtl>div:nth-of-type(1){
    display: flex;
    justify-content: space-between;
}




#info{
    display: flex;
    padding: 16px 0px;
}
#info>img{
    width: 160px;
    height: 240px;
}
#info>div:first-of-type{
    padding: 16px;
    color: gray;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#author{
    color: #3377aa;
    text-decoration: none;
}



/* 豆瓣评分CSS */
#score{
    padding: 24px;
    color: gray;
    font-size: small;
    border-left: 1px solid lightgray;
}
#score>div{
    display: flex;
    align-items: center;
}
#score>div:first-of-type>a{
    color: black;
    font-size: xx-large;
}
#score>div:first-of-type>div{
    margin: 12px;
}
#score>div>div>div{
    width: 75px;
    height: 15px;
    margin-bottom: 4px;
    background: url('../rating.png');
    background-position-y: -15px;
}
#score>div>div>a{
    color: #3377aa;
}
#score>div:nth-of-type(n+2)>div{
    height: 10px;
    margin-left: 12px;
    margin-right: 4px;
    background: orange;
}


/* 推荐、读过、打分CSS */
#dtl>div:nth-of-type(2){
    padding: 32px 0px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* background: yellow; */
}
#dtl>div:nth-of-type(2)>div{
    padding-top: 6px;
    margin-right: 32px;
    /* background: yellow; */
}
#dtl>div>a:last-of-type{
    color: #3377aa;
    text-decoration: none;
}
#dtl>a:nth-of-type(n+2){
    display: block;
    /* margin-top: 24px; */
    /* margin-bottom: 12px; */
    /* font-weight: ; */
    color: forestgreen;
    /* background: yellow; */
}
.com>div{
    padding-top: 16px;
    display: flex;
    align-items: center;
    /*border-top: 1px solid lightgray;*/
}
.com>div:first-of-type>a{
    color: #66ccff;
    margin-right: 0.4rem;
}

.com{
    margin-top: 1rem;
    border-top: 1px solid lightgray;
}
/*推荐、读过：正常显示*/
button {
    padding: 2px 8px;
    margin-right: 12px;
    border-radius: 4px;
    border: 1px solid ;
    border-color: #d5bcaa;
    background: #ffeada;
    cursor: pointer;
}

/*打星*/
button + a + div > img{
    cursor: pointer;
}

/*写书评按钮设置*/
#comments{
    cursor: pointer;
}

textarea{
    margin-top: 1rem;
    width: 100%;
    height: 8rem;
}

textarea+div{
    display: flex ;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*background: black;*/
}

textarea+div>button{
    height: 2rem;
    width: 5rem;
    margin-top: 0.5rem;
}

textarea+div>p{
    position: relative;
    top: -5rem;
    text-indent: -1em;
}


p{
    font-size: small;
    text-indent: 2em;
}

#rec{
    padding: 32px;
    width: 300px;
}
#rec>a{
    padding: 16px 0px;
    display: block;
    color: green;
    border-bottom: 1px solid lightgray;
}
#rec>div{
    padding: 12px 0px;
    border-bottom: 1px dashed lightgray;
    display: flex;
}
#rec>div>img{
    width: 60px;
    height: 80px;
}
#rec>div>div{
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#rec>div>div>a{
    padding: 4px 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#rec>div>div>a:first-of-type{
    color: #3377aa;

}
#rec>div>div>a:nth-of-type(n+2){
    font-size: small;
}